<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>

<html>
<head>
    <title>登录</title>
    <meta charset="utf-8">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>

    <!-- bootstrap.bundle.min.js 用于弹窗、提示、下拉菜单，包含了 popper.min.js -->
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>

    <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<jsp:include page="page.jsp"></jsp:include>
<form style="margin-left:500px;margin-top:200px;" action="/user/login" method="post">
    <div class="form-group">
        <label for="username" stype="display:inline;">用户名：</label>
        <input type="text" class="form-control" id="username" name="username"  value="${cookie.username.value}"  style="display:inline;width:200px;" autocomplete="off"/>
    </div>
    <div class="form-group">
        <label for="phone" style="display:inline;">密 &nbsp;&nbsp;&nbsp;码：</label>
        <input type="text" class="form-control" id="phone" value="${cookie.password.value}" name="password" style="display:inline;width:200px;" autocomplete="off" />
    </div>
    <input name="remember" type="checkbox" value="1"  ${cookie.remember.value!=null?'checked':''}> 记住我
    <button type="submit" class="btn btn-primary" onclick="" style="margin-right: 30px;margin-left: 50px">登 录</button>
    <button type="button" class="btn btn-primary" onclick="doSMS()" style="margin-left: 0px">短信验证</button>
    <div style="margin-left: 170px;"><a href="/register.jsp" style="color: black;font-size: 10px;">您可能还未注册!</a></div>
</form>
</body>
<script>
    function doSMS() {
        window.location.href = "/user/loginbyphone";
    }
</script>
</html>
